﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Dpx.Models;
using Dpx.Services;
using GalaSoft.MvvmLight.Ioc;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;

namespace Dpx.Views {
    [XamlCompilation(XamlCompilationOptions.Compile)]
    public partial class ResultPage : ContentPage {
        public ResultPage() {
            InitializeComponent();
        }

        private async void Button_OnClicked(object sender, EventArgs e) {
            await SimpleIoc.Default.GetInstance<IContentNavigationService>().NavigateToAsync(
                ContentNavigationConstant.DetailPage, new Poetry {
                    Name = "哈哈哈"
                });
        }
    }
}